package com.hnkywl.sts.entity.cwgl;

import com.hnkywl.sts.entity.BaseEntity;
import com.hnkywl.sts.entity.organ.Nbgs;
import com.hnkywl.sts.entity.sys.Yg;
import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;

import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import java.util.Date;

public class VoucherMasterData extends BaseEntity {
    /**
     * 公司
     */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name="NBGS_ID")
    @NotFound(action = NotFoundAction.IGNORE)
    private Nbgs nbgs;

    /**
     *凭证类别
     */
    private Integer pzlb;


    /**
     * 操作人
     */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name="YG_ID")
    @NotFound(action = NotFoundAction.IGNORE)
    private Yg czr;

    /**
     * 附件张数
     */
    private Integer fjzs;
    /**
     * 备注
     */
    private String bz;

    public Nbgs getNbgs() {
        return nbgs;
    }

    public void setNbgs(Nbgs nbgs) {
        this.nbgs = nbgs;
    }

    public Integer getPzlb() {
        return pzlb;
    }

    public void setPzlb(Integer pzlb) {
        this.pzlb = pzlb;
    }

    public Yg getCzr() {
        return czr;
    }

    public void setCzr(Yg czr) {
        this.czr = czr;
    }

    public Integer getFjzs() {
        return fjzs;
    }

    public void setFjzs(Integer fjzs) {
        this.fjzs = fjzs;
    }

    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }
}
